package com.sugon.utils;

/**
 * 常量
 *
 * @author
 * @date
 */
public class Constant {

    /**
     * 认证，用户登录时是否进行身份认证
     * 以下参数表示认证
     */
    public static final String AUTH = "1";

    /**
     * 超级管理员ID
     */
    public static final String SUPER_ADMIN = "1234567890";

    /**
     * 默认系统domainId
     */
    public static final String DOMAIN_ID = "735e3dd6bb4f4a9191a66761d6g73918";

    public static final String USE_DATA = "ORACLE";

    /**
     * 排序方式名称 asc:正序 | desc:倒序
     */
    public static final String SORT_ORDER = "sortOrder";
    /**
     * 当前登录用户信息
     */
    public static final String CURRENT_USER = "curUser";

    /**
     * 长安统一认证中心颁发的令牌
     */
    public static final String IDENTITY_TOKEN = "IDENTITY_TOKEN";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASS_WORD = "888888";
    /********************************权限角色********************************/
    /**
     * 超级管理员
     */
    public static final String SUPER_ADMIN_ROLE = "1acae81674cf4525a2b2eec2e065965c";

    /**
     * 工单查看角色
     */
    public static final String SUPER_QUERY_ROLE = "s2oflyavn16256fuu1hwf2arcw4zupx3";

    /**
     * 系统管理员
     */
    public static final String SYSTEM_ADMIN_ROLE = "e49a48ae5fe44eaeacb7ca15e6d082f8";

    /**
     * 基础数据维护员
     */
    public static final String BASE_DATA_MANAGER_ROLE = "9f102c5e3cc54573bf4af2fdbeca5d87";

    /**
     * 车间机电设备工程师角色
     */
    public static final String JD_ROLE = "4f750e64eb944ee2a5172d0249893abf";
    /**
     * 制造处机电设备工程师
     */
    public static final String ZZC_JD_ROLE = "11926c78e9944fb6b1734bb5d1d506d3";
    /**
     * 维修组长
     */
    public static final String WXZ_ROLE = "b108c05e028540e3bd561acceef74ea4";
    /**
     * 生产班组长
     */
    public static final String SCZ_ROLE = "a53a0d2186144ed795fc018ae6753d6c";
    /**
     * 机电维修工
     */
    public static final String WXRY_ROLE = "21a05d5250084513b62db5d70cc3b192";
    /**
     * TODO 授权工程师
     */
    public static final String ZZC_PESQ = "c0feb09179614a8ebbb81bbab4b1e4d4";
    /**
     * 用户尝试登陆次数缓存前缀
     */
    public static final String USER_LOGIN_ATTEMPT_TIME_PREFIX = "USER_LOGIN_ATTEMPT_TIME_";

    /**
     * 权限前缀
     */
    public static final String PERMS_LIST = "eeompPermsList";
    public static final Integer UPLOADSWITCH = 1; //文件上传的地址  本地1  云服务2

    /**
     * 删除
     */
    public static final String IS_NOT_DEL = "1";
    public static final String IS_DEL = "0";
    public static final Integer IS_NOT_DEL_INT = 1;
    public static final Integer IS_DEL_INT = 0;
    /**
     * 审核
     */
    public static final String IS_NOT_ADOPT = "0";//未审核
    public static final String IS_ADOPT = "1";//审核通过
    public static final String NOT_ADOPT = "2";//审核未通
    public static final String DT_SBJSS = "DT_SBJSS";//车间机电设备工程师的部门
    public static final String DT_SBWXZ = "DT_SBWXZ";//维修班组

    public static final String IS_NORMAL = "2";//是否正常--未处理
    public static final String SPARE_OUT = "SPR_OUT";//备件出库编码
    public static final String SPARE_IN = "SPR_IN";//备件入库编码
    public static final String SPARE_BACK = "SPR_BACK";//备件退库编码
    public static final String TOOL_SCRAP = "TSCRAP";//工装报废编码
    public static final String TOOL_IN = "TL_IN";//工装入库编码

    /**
     * 菜单类型
     *
     * @author
     * @email
     * @date
     */
    public enum MenuType {
        /**
         * 目录
         */
        CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        private MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    /**
     * 定时任务状态
     *
     * @author
     * @email
     * @date
     */
    public enum ScheduleStatus {
        /**
         * 正常
         */
        NORMAL(0),
        /**
         * 暂停
         */
        PAUSE(1);

        private int value;

        private ScheduleStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    /**
     * 云服务商
     */
    public enum CloudService {
        /**
         * 七牛云
         */
        QINIU(1),
        /**
         * 阿里云
         */
        ALIYUN(2),
        /**
         * 腾讯云
         */
        QCLOUD(3);

        private int value;

        private CloudService(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
}
